package service.impl;

import dao.DeptDao;
import dao.impl.DeptDaoImpl;
import pojo.Dept;
import service.DeptService;

import java.util.List;

public class DeptServiceImpl implements DeptDao, DeptService {
    DeptDao deptDao = new DeptDaoImpl();
    @Override
    public int addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public List<Dept> findAll(Dept dept) {
        return deptDao.findAll(dept);
    }
    @Override
    public int deleteDeptById(Integer id) {
        return deptDao.deleteDeptById(id);
    }
    @Override
    public Dept findById(Integer id) {
        return deptDao.findById(id);
    }
    @Override
    public int updateDept(Dept dept) {
        return deptDao.updateDept(dept);
    }
}
